from src.ui.main import main_wx
from multiprocessing import freeze_support
import ctypes


def hideConsole():
    """隐藏控制台"""
    whnd = ctypes.windll.kernel32.GetConsoleWindow()
    if whnd != 0:
        ctypes.windll.user32.ShowWindow(whnd, 0)
        # if you wanted to close the handles...
        # ctypes.windll.kernel32.CloseHandle(whnd)


if __name__ == '__main__':
    freeze_support()
    hideConsole()
    main_wx()
